import java.util.Scanner;

public class ASSSA {
    public static void main(String[] args){
        int cum=0;
        for (int i = 0;i<5;i++) {
            System.out.println("输入成绩");
            Scanner N = new Scanner(System.in);
            int cA;
            cA = N.nextInt();
            if (cA > 100) {
                System.out.println("输入错误");
            }
            if (cA < 100) {
                cum = cum + cA;
                System.out.println(cum);
            }
        }
    }
}
